﻿using Nop.Core.Infrastructure;
using Nop.Services.Localization;

namespace Nop.Web.Framework
{
    public static class EngineExtensions
    {
        /// <summary>
        /// 本地化服务
        /// </summary>
        /// <param name="engine">引擎接口</param>
        /// <returns></returns>
        public static ILocalizationService LocalizationService(this IEngine engine)
        {
            return engine.Resolve<ILocalizationService>();
        }
    }
}
